<%@ Page Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeFile="Periodos.aspx.cs" Inherits="Secretaria_Periodos" Title="Untitled Page" %>

<%@ Register Assembly="customCalendar" Namespace="customCalendar" TagPrefix="cc2" %>
<%@ Register Src="../Controles/CboGeneric.ascx" TagName="CboGeneric" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageContainer" Runat="Server">
 <table style="width: 494px; height: 157px">
        <tr>
            <td style="width: 113px">
                Sede</td>
            <td style="width: 316px">
                <uc1:CboGeneric ID="cboSede" runat="server"  
                 SourceData="Sedes"
                  NameDescript="DescripcionSede"
                  NameId="IdSede"
                  TipoOrigen="Tabla"
                />
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td style="width: 113px; height: 25px">
                Tipo Planilla</td>
            <td style="width: 316px; height: 25px">
                <uc1:CboGeneric ID="CboTipoPlanilla"
                 runat="server" 
                
                 />
            </td>
            <td style="height: 25px">
            </td>
        </tr>
     <tr>
         <td style="width: 113px; height: 112px">
         </td>
         <td style="width: 316px; height: 112px">
         </td>
         <td style="height: 112px">
         </td>
     </tr>
        <tr>
            <td style="width: 113px; height: 112px;">
            </td>
            <td style="width: 316px; height: 112px;">
                
                <asp:GridView ID="GridView1" 
                runat="server" 
                OnRowDataBound="GridView1_RowDataBound"
                DataKeyNames = "IdPeriodo" AutoGenerateColumns="False"
                >
                <Columns>
                <asp:BoundField DataField="idPeriodo" HeaderText="Id" />
                <asp:BoundField DataField="Periodo" HeaderText="Periodo" />
                <asp:BoundField DataField="Desde" HeaderText="Desde" />
                <asp:BoundField DataField="Hasta" HeaderText="Hasta" />
                    <asp:TemplateField HeaderText="Estado">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("estado") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="ckhBox" runat="server" Checked="false" />
                        </ItemTemplate>
                    </asp:TemplateField>
                <asp:BoundField DataField="NroPeriodo" HeaderText="NroPeriodo" />
                <asp:BoundField DataField="OrdenPeriodo" HeaderText="OrdenPeriodo" />
                <asp:TemplateField HeaderText="Idtipo">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Idtipo") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="ckhBoxCua" runat="server" Checked="false" />
                        </ItemTemplate>
                   </asp:TemplateField>
                </Columns>
                </asp:GridView>
            </td>
            <td style="height: 112px">
            </td>
        </tr>
        <tr>
            <td style="width: 113px; height: 27px;">
            </td>
            <td style="width: 316px; height: 27px;"></td>
            <td style="height: 27px">
            </td>
        </tr>
    </table>
    <asp:Button ID="Button1" runat="server" CssClass="input-button" OnClick="cmdGuardarTipo_Click"
                    Text="Guardar" Width="122px"  Visible="false"/><br />
    <asp:Panel ID="Panel1" runat="server" Height="126px" Width="481px">
        <table>
            <tr>
                <td style="width: 176px; height: 26px">
                    Desde</td>
                <td style="width: 175px; height: 26px">
                    <cc2:webCalendar ID="fechaDesde" runat="server" RutaImagen="calendar/images/cal.gif"
                        RutaJavaScript="calendar/popcalendar.js" Validable="true" />
                </td>
                <td style="width: 143px; height: 26px">
                </td>
            </tr>
            <tr>
                <td style="width: 176px">
                    Hasta</td>
                <td style="width: 175px"><cc2:webCalendar ID="fechahasta" runat="server" 
                        RutaImagen="calendar/images/cal.gif"
                        RutaJavaScript="calendar/popcalendar.js" Validable="true" />
                    </td>
                <td style="width: 143px">
                </td>
            </tr>
            <tr>
                <td style="width: 176px">
                    Nro Periodo</td>
                <td style="width: 175px">
                <asp:TextBox ID="txtNroPeriodo" runat="server"></asp:TextBox>
                    </td>
                <td style="width: 143px">
                </td>
            </tr>
            <tr>
                <td style="width: 176px">
                    Nro Orden</td>
                <td style="width: 175px">
                <asp:TextBox ID="txtNroOrden" runat="server"></asp:TextBox>
                    </td>
                <td style="width: 143px">
                </td>
            </tr>
            <tr>
                <td style="width: 176px">
                </td>
                <td style="width: 175px">
                <asp:Button ID="cmdGuardar" runat="server" CssClass="input-button" OnClick="cmdGuardar_Click"
                    Text="Guardar" Width="242px"  Visible="false"/></td>
                <td style="width: 143px">
                </td>
            </tr>
        </table>
    </asp:Panel>
    <br />
</asp:Content>

